package cn.tedu.util;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

//测试  HashMap
public class Test1 {
    public static void main(String[] args) {
        //1.创建对象
        HashMap<Integer,String> map=new HashMap<>();
        map.put(100,"jeck");
        map.put(20,"rose");
        map.put(15,"tony");
        map.put(20,"jerry");
        map.put(30,"tommy");
        //2.调用方法
        System.out.println(map.keySet());
        System.out.println(map.values());
        System.out.println(map.containsValue("我88"));

        //TODO 迭代Map集合
        Set<Integer> map1=new HashSet<>();
    }
}
